package cn.hbu.zlfw.job.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hbu.zlfw.common.base.service.impl.BaseServiceImpl;
import cn.hbu.zlfw.common.util.Utility;
import cn.hbu.zlfw.job.dao.MessageHandlerDao;
import cn.hbu.zlfw.job.entity.ShortMessage;
/**
 * 
 * @ClassName: ShortMessageServiceImpl 
 * @Description: 对短信表信息进行处理service层接口实现
 * @author wpw<1223443289@qq.com>
 * @date 2017年10月25日 下午9:17:32  
 * @version V1.0
 */
import cn.hbu.zlfw.job.service.ShortMessageService;
/**
 * 
 * @ClassName: ShortMessageServiceImpl 
 * @Description: 短信接口service接口实现
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年11月8日 上午11:14:13  
 * @version V1.0
 */
@Service("shortMessageService")
@Transactional
public class ShortMessageServiceImpl  extends BaseServiceImpl<ShortMessage, String> implements ShortMessageService{
	
	@Autowired
	private MessageHandlerDao messageHandlerDao;
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.job.service.ShortMessageService#findShortMessageByParams(java.lang.String, java.lang.Integer)
	 */
	@Override
	public ShortMessage findShortMessageByParams(String phoneNumber, int type) {
		Map<String, Object> params=Utility.getMapInstance();
		params.put("phoneNumber", phoneNumber);
		params.put("type", type);
		return this.messageHandlerDao.findShortMessageByParams(params);
	}
	
}
